import Mock, { Random } from 'mockjs'

export const list = () => {
    return Mock.mock({
        'data|19': [{
            department: () => Random.city(),
            'read|0-10': 0,
            copy: () => Random.boolean(),
            print: () => Random.boolean(),
            export: () => Random.boolean(),
            comment: () => Random.boolean(),
            edit: () => Random.boolean(),
            save: () => Random.boolean(),
            auth: () => Random.boolean(),
            shuiyin: () => Random.boolean(),
            add: () => Random.boolean(),
            remove: () => Random.boolean(),
            separate: () => Random.boolean(),
            date: () => Random.date('yyyy/MM/dd')
        }]
    })
}
